//-------------------------------------------------------------------
//	Copyright (c) 2012-2014 Zhirnov Andrey
//	This file is part of the "UXGEN-ES" project.
//	See copyright notice in "Engine.h".
//-------------------------------------------------------------------

#pragma once

#include "Scene2D/Objects/SceneObject.h"

namespace Engine
{
namespace Scene2D
{


	//
	// Scene Trigger
	//

	class SceneTrigger : public SceneObject
	{
	// variables
	protected:
		Physics2D::Trigger	_physObj;


	// methods
	public:
		SceneTrigger () : SceneObject( ESceneObj::TRIGGER )	{}
		
		~SceneTrigger ()	{}


		void CreateBox (const vec2 &size, const vec2 &pos, float angleRad = 0.0f);
		void CreateCircle (float radius, const vec2 &pos);


		// SceneObject //
		virtual bool ProcessMessage (const SceneObjMsg &msg) override;
	};

	
}	// Scene2D
}	// Engine